package com.cn.demo4.thread.priority;

public class TestPriority {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getPriority());
//当注释时，默认值为5，当放开注释，都是7
//        Thread.currentThread().setPriority(7);
        System.out.println(Thread.currentThread().getPriority());
        MyThreadOne myThreadOne = new MyThreadOne();
        myThreadOne.start();
    }
}

